package com.angel.bo.common.exception;

/**
 * @Author:
 * @Description:
 * @Date: 16:58 2018/1/25
 */
public class BaseException extends RuntimeException {
    private String status = "200";

    private String[] errorConstant;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BaseException() {
    }

    public BaseException(String message,String status) {
        super(message);
        this.status = status;
    }


    public BaseException(String[] errorConstant){
        super(errorConstant[1]);
        this.status = errorConstant[0];
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public String[] getErrorConstant() {
        return errorConstant;
    }

    public void setErrorConstant(String[] errorConstant) {
        this.errorConstant = errorConstant;
    }
}